package com.ccp.dev.workflow.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.workflow.bpminterface.IActDefMapper;
import com.ccp.dev.workflow.model.bpm.BpmNodeSign;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassDescribe:
 * 会签规则设置数据交换层
 * @author :wangcheng
 * Date: 2019-09-04
 */
public interface BpmNodeSignDao extends IBaseMapper<BpmNodeSign, String>, IActDefMapper {

    /**
     * 根据流程定义id和节点id获取会签设置对象
     * @param procDefId 流程定义id
     * @param nodeId 节点id
     * @return
     */
    BpmNodeSign getByProcDefIdAndNodeId(@Param("procDefId") String procDefId, @Param("nodeId") String nodeId);
    /**
     * 根据流程定义id获取会签设置对象
     * @param procDefId 流程定义id
     * @return
     */
    List<BpmNodeSign> queryByProcDefId(String procDefId);
}
